//
//  HWRechargeModel.m
//  嗨文
//
//  Created by 响当当 on 2019/3/25.
//  Copyright © 2019年 dongzheng. All rights reserved.
//

#import "HWRechargeModel.h"

@implementation HWRechargeModel
- (id)initWithDic:(NSDictionary *)dic
{
    if (self = [super init])
    {
        self.bookCoupon = IFNULL(dic[@"bookCoupon"], [NSNumber numberWithInteger:0]);
        self.isFirstRecharge = IFNULL(dic[@"isFirstRecharge"], [NSNumber new]);
        self.bookCoin = IFNULL(dic[@"bookCoin"], [NSNumber new]);
        self.goodsList = [dic[@"goodsList"] isValidArray] ? dic[@"goodsList"] : [NSArray array];
        
    }
    return self;
}
@end
